package com.jic.finance.base;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class BaseResult<T> {

    private String code = "0000";

    private String msg = "";

    private T data;

    public BaseResult(){

    }

    public BaseResult(String code){
        this.code = code;
    }

    public BaseResult(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public BaseResult(String code, String msg, T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

}
